#!/bin/bash -xe

source $(dirname $0)/env.sh

$QEMU_BIN \
    -M $MACHINE_OPTION \
    -nographic \
    -m 1024M \
    $CPU_OPTION \
    -smp 4 \
    -kernel $LINUX_KERNEL_IMAGE \
    -initrd $ROOTFS_DIR/../$ROOTFS_IMAGE \
    --append "console=ttyAMA0 rdinit=/linuxrc" \
    -fsdev local,security_model=none,id=fsdev0,path=$(pwd)/$MOUNT_DIR \
    -device virtio-9p-device,id=fs0,fsdev=fsdev0,mount_tag=host_share \
